<%@ page
	import="cn.firstsoft.firstframe.plugins.rtx.RtxUtils,org.springside.modules.security.domain.UserSession,org.springside.core.Constants"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs2.jsp"%>

<%
	if ("true".equals(Constants.RTX)) {
%>
<%
	UserSession userSession = (UserSession) session
				.getAttribute("loginUser");
		String loginid = "";
		if ("true".equals(Constants.EAS)) {
			loginid = userSession.getName();
		} else {
			loginid = userSession.getLoginid();
		}
		String sessionKey = RtxUtils.getSessionKey(loginid);
%>
<OBJECT id=RTXAX
	data=data:application/x-oleobject;base64,fajuXg4WLUqEJ7bDM/7aTQADAAAaAAAAGgAAAA==
	classid=clsid:5EEEA87D-160E-4A2D-8427-B6C333FEDA4D VIEWASTEXT>
</OBJECT>
<script language="vbscript"> 
Function loginRtx()
   Set objProp = RTXAX.GetObject("Property") 
   objProp.Value("RTXUsername") = "<%=loginid%>" 
   objProp.Value("LoginSessionKey") = "<%=sessionKey%>" 
   objProp.Value("ServerAddress") = "<%=Constants.RTX_SERVER%>" 
   objProp.Value("ServerPort") = <%=Constants.RTX_PORT%>
   RTXAX.Call 2, objProp 
End Function
</script>
<body onload="loginRtx();" style="background-color:  #ebebe6">正在登录RTX.....请稍候...</body>

<%
	}
%>

<script type="text/javascript">
<!--
window.close();
//-->
</script>
